package com.sxf.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sxf.dao.OptionDAO;
import com.sxf.domain.blog.Option;
import com.sxf.mybatis.page.Pagination;
import com.sxf.querybean.OptionQuery;
import com.sxf.service.OptionService;
@Service
public class OptionServiceImpl implements OptionService {
	@Resource
	private OptionDAO dao;

	@Override
	public Pagination<Option> queryPage(OptionQuery query) {
		return dao.queryPage(query);
	}

	@Override
	public List<Option> queryList(OptionQuery optionQuery) {
		return dao.queryList(optionQuery);
	}

	@Override
	public Map<String, Object> queryMap(OptionQuery optionQuery) {
		return dao.queryMap(optionQuery);
	}

	@Override
	public long queryNumber(OptionQuery optionQuery) {
		return dao.queryNumber(optionQuery);
	}

	@Override
	public int insert(Option option) {
		return dao.insert(option);
	}

	@Override
	public int update(Option option) {
		return dao.update(option);
	}

	@Override
	public int delete(Option option) {
		return dao.delete(option);
	}

	public void setDao(OptionDAO dao) {
		this.dao = dao;
	}

}
